package top.dingyingying.springboot3.base;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class PageBean  implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Long pageNumber;
    private Long pageSize;
    private Long total;
    private Long pageCount;

public static PageBean instance(Long pageNumber,Long pageSize){
    PageBean pageBean = new PageBean();
    pageBean.setPageNumber(pageNumber);
    pageBean.setPageSize(pageSize);
    return pageBean;
}
}
